﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 策略模式
{
  public  class Division: BaseCaculation
    {

        public override int Cuculation(int iInputLeft, int iInputRight)
        {
            if (iInputRight == 0)
            {
                Console.WriteLine("被除数是0，不合法");
                throw new Exception("被除数是0，不合法");
            }
            return iInputLeft / iInputRight;
        }

      
    }
}
